import Mock from 'mockjs'

const data = Mock.mock({
    'list|20':[{
        'id|+1':1,
        'name':'@cname',
        'price|20-100':30,
        'count':0,
        "img":"@image('200x200', @color)"
    }]
})
// console.log(data.list)


// 模拟接口
Mock.mock('/api/list','get',() => {
    return {
        code:200,
        data:data.list
    }
})

